home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Handler / DLL / MkStubsOs < prev    next >
Text File  |  1995-09-04  |  6KB  |  234 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.ClickOK    \
  4.             o.CloseW    \
  5.             o.DeleteW    \
  6.             o.DragFinish    \
  7.             o.DragNULL    \
  8.             o.HtchRedraw    \
  9.             o.Key    \
  10.             o.ModeChange    \
  11.             o.NullRedraw    \
  12.             o.OpenW    \
  13.  
  14.  
  15. LibName        =    Handler
  16.  
  17.  
  18.  
  19. # Template makefile to make all .o files
  20. # and the SDLS Stubs file for DeskLib
  21. # sublibraries.
  22. # Julian Smith 16 Mar 1995.
  23.  
  24.  
  25. # The macro $(ObjectFiles) should be set at the 
  26. # start of this file, to be a space-separated
  27. # list of object files.
  28. # This is done by 'Makatic'.
  29.  
  30.  
  31. # The macro $(LibName) should also be set at the 
  32. # start of this file, to be the name of the 
  33. # DeskLib sublibrary.
  34. # This is done by 'Makatic'.
  35.  
  36. # Compiler and linker flags, These can be anything. 
  37. # All flags required by Straylight (eg CC -zM and
  38. # Link -rmf) are included in the macros $(CC) and
  39. # $(LINK).
  40. #
  41. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  42. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  43.  
  44.  
  45. # Macros for commands, including the Straylight
  46. # tool 'cdll'. Note that DRLink doesn't seem to
  47. # work with the SDLS.
  48. #
  49. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  50. ASM        =    ObjAsm $(ASMFlags)
  51. CDLL        =    cdll
  52. LINK        =    link
  53. AS        =    as -dde -throwback
  54.  
  55.  
  56. # filename of DLL Stubs aof file. This is linked with client apps.
  57. DLL_Stubs    =    Stubs
  58.  
  59.  
  60. # Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
  61. #
  62. # DLL_Def:        Standard definition file as per SDLS docs.
  63. # DLL_OtherStubsSource    Assembler source to be partially linked into
  64. #            the final stubs file. This will force linking
  65. #            in of stubs from any other DLLs used by this
  66. #            library when a client application is built.
  67. # DLL_PlainStubs    The vanilla stubs file created by SDLS's cdll.
  68. # DLL_OtherStubsObject    Assembled from DLL_OtherStubsSource. This
  69. #            simply imports __DeskLib_SDLS_Stubs_<libname>'s
  70. #            for all DeskLib DLLs used by this library, and
  71. #            exports __DeskLib_SDLS_Stubs_<thislibname>.
  72. #
  73. DLL_Def            =    ^.DLLDef
  74. DLL_OtherStubsSource    =    ^.OtherStubs
  75.  
  76. DLL_PlainStubs        =    PlainStubs
  77. DLL_OtherStubsObject    =    OSObj
  78.  
  79. # -------------------------------------------------------
  80. # Everything below here should probably not be changed...
  81. # -------------------------------------------------------
  82.  
  83.  
  84.  
  85. # Now all the rules...
  86.  
  87.  
  88. # Here's the two things we want to make...
  89. #
  90. All:    $(DLL_Stubs) $(ObjectFiles)
  91.  
  92. $(DLL_Stubs):    $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  93.     $(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  94.  
  95. $(DLL_PlainStubs):    $(DLL_Def)
  96.     $(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
  97.  
  98.  
  99. #$(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  100. #    $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
  101.  
  102. $(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  103.     $(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject) 
  104.  
  105.  
  106. $(DLL_Def):    
  107.     | Warning: No DLL definition file exists.
  108.     | Creating a default DLL definition file: $(DLL_Def)
  109.     | This will have to be altered by hand.
  110.     $(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
  111.  
  112.  
  113.  
  114. # Rule for compiling C source code for a Straylight dynamically-linked library.
  115.  
  116. VPATH = @.^
  117.  
  118. .SUFFIXES:    .o .c .s
  119.  
  120. .c.o:
  121.     $(CC) -o $@ $<
  122.  
  123. .s.o:
  124.     $(ASM) $(ASMFlags) -from $< -to $@
  125.  
  126.  
  127.  
  128. # Dynamic dependencies:
  129. o.ClickOK:    ^.c.ClickOK
  130. o.ClickOK:    DeskLib:h.Wimp
  131. o.ClickOK:    DeskLib:h.Core
  132. o.ClickOK:    C:h.stddef
  133. o.ClickOK:    C:DLLLib.h.dll
  134. o.ClickOK:    C:h.kernel
  135. o.ClickOK:    DeskLib:h.Icon
  136. o.ClickOK:    DeskLib:h.DragASpr
  137. o.ClickOK:    DeskLib:h.Handler
  138. o.CloseW:    ^.c.CloseW
  139. o.CloseW:    DeskLib:h.WimpSWIS
  140. o.CloseW:    DeskLib:h.Core
  141. o.CloseW:    C:h.stddef
  142. o.CloseW:    C:DLLLib.h.dll
  143. o.CloseW:    C:h.kernel
  144. o.CloseW:    DeskLib:h.Wimp
  145. o.CloseW:    DeskLib:h.Window
  146. o.CloseW:    DeskLib:h.Pointer
  147. o.CloseW:    DeskLib:h.Core
  148. o.CloseW:    DeskLib:h.Icon
  149. o.CloseW:    DeskLib:h.DragASpr
  150. o.CloseW:    DeskLib:h.Window
  151. o.CloseW:    DeskLib:h.Coord
  152. o.CloseW:    DeskLib:h.Handler
  153. o.DeleteW:    ^.c.DeleteW
  154. o.DeleteW:    DeskLib:h.Wimp
  155. o.DeleteW:    DeskLib:h.Core
  156. o.DeleteW:    C:h.stddef
  157. o.DeleteW:    C:DLLLib.h.dll
  158. o.DeleteW:    C:h.kernel
  159. o.DeleteW:    DeskLib:h.Window
  160. o.DeleteW:    DeskLib:h.WimpSWIs
  161. o.DeleteW:    DeskLib:h.Pointer
  162. o.DeleteW:    DeskLib:h.Core
  163. o.DeleteW:    DeskLib:h.Icon
  164. o.DeleteW:    DeskLib:h.DragASpr
  165. o.DeleteW:    DeskLib:h.Window
  166. o.DeleteW:    DeskLib:h.Coord
  167. o.DeleteW:    DeskLib:h.Handler
  168. o.DragFinish:    ^.c.DragFinish
  169. o.DragFinish:    DeskLib:h.Wimp
  170. o.DragFinish:    DeskLib:h.Core
  171. o.DragFinish:    C:h.stddef
  172. o.DragFinish:    C:DLLLib.h.dll
  173. o.DragFinish:    C:h.kernel
  174. o.DragFinish:    DeskLib:h.Drag
  175. o.DragFinish:    DeskLib:h.Handler
  176. o.DragNULL:    ^.c.DragNULL
  177. o.DragNULL:    DeskLib:h.Wimp
  178. o.DragNULL:    DeskLib:h.Core
  179. o.DragNULL:    C:h.stddef
  180. o.DragNULL:    C:DLLLib.h.dll
  181. o.DragNULL:    C:h.kernel
  182. o.DragNULL:    DeskLib:h.Drag
  183. o.DragNULL:    DeskLib:h.Handler
  184. o.HtchRedraw:    ^.c.HtchRedraw
  185. o.HtchRedraw:    DeskLib:h.WimpSWIS
  186. o.HtchRedraw:    DeskLib:h.Core
  187. o.HtchRedraw:    C:h.stddef
  188. o.HtchRedraw:    C:DLLLib.h.dll
  189. o.HtchRedraw:    C:h.kernel
  190. o.HtchRedraw:    DeskLib:h.Wimp
  191. o.HtchRedraw:    DeskLib:h.GFX
  192. o.HtchRedraw:    DeskLib:h.Handler
  193. o.Key:    ^.c.Key
  194. o.Key:    DeskLib:h.WimpSWIS
  195. o.Key:    DeskLib:h.Core
  196. o.Key:    C:h.stddef
  197. o.Key:    C:DLLLib.h.dll
  198. o.Key:    C:h.kernel
  199. o.Key:    DeskLib:h.Wimp
  200. o.Key:    DeskLib:h.Handler
  201. o.ModeChange:    ^.c.ModeChange
  202. o.ModeChange:    Desklib:h.Wimp
  203. o.ModeChange:    Desklib:h.Core
  204. o.ModeChange:    C:h.stddef
  205. o.ModeChange:    C:DLLLib.h.dll
  206. o.ModeChange:    C:h.kernel
  207. o.ModeChange:    Desklib:h.Screen
  208. o.ModeChange:    Desklib:h.Window
  209. o.ModeChange:    Desklib:h.WimpSWIs
  210. o.ModeChange:    Desklib:h.Pointer
  211. o.ModeChange:    Desklib:h.Core
  212. o.ModeChange:    Desklib:h.Icon
  213. o.ModeChange:    Desklib:h.DragASpr
  214. o.ModeChange:    Desklib:h.Window
  215. o.ModeChange:    Desklib:h.Coord
  216. o.ModeChange:    DeskLib:h.Handler
  217. o.NullRedraw:    ^.c.NullRedraw
  218. o.NullRedraw:    DeskLib:h.WimpSWIS
  219. o.NullRedraw:    DeskLib:h.Core
  220. o.NullRedraw:    C:h.stddef
  221. o.NullRedraw:    C:DLLLib.h.dll
  222. o.NullRedraw:    C:h.kernel
  223. o.NullRedraw:    DeskLib:h.Wimp
  224. o.NullRedraw:    DeskLib:h.Handler
  225. o.OpenW:    ^.c.OpenW
  226. o.OpenW:    DeskLib:h.WimpSWIS
  227. o.OpenW:    DeskLib:h.Core
  228. o.OpenW:    C:h.stddef
  229. o.OpenW:    C:DLLLib.h.dll
  230. o.OpenW:    C:h.kernel
  231. o.OpenW:    DeskLib:h.Wimp
  232. o.OpenW:    DeskLib:h.Handler
  233.